package com.dragon.modules.yuegou.model.product;

import com.dragon.modules.yuegou.enums.product.SpuShowModule;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 自定义商品类
 */
public class ProductClassify implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("产品id")
    private String id;

    @ApiModelProperty("产品标题")
    private String title;

    @ApiModelProperty("产品的spuid")
    private String spuId;

    @ApiModelProperty("产品展示模块")
    private SpuShowModule showModule;

    @ApiModelProperty("产品图片")
    private String mainImg;

    @ApiModelProperty("产品原价")
    private BigDecimal originalPrice;

    @ApiModelProperty("产品现价")
    private BigDecimal price;

    @ApiModelProperty("商户id")
    private String merchantId;
    @ApiModelProperty("仅剩多少份")
    private Integer stock;

    @ApiModelProperty("限时折扣中的折扣")
    private BigDecimal discount;

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public ProductClassify() {
    }

    public ProductClassify(String id, String title, String spuId, SpuShowModule showModule, String mainImg, BigDecimal originalPrice, BigDecimal price, String merchantId, Integer stock) {
        this.id = id;
        this.title = title;
        this.spuId = spuId;
        this.showModule = showModule;
        this.mainImg = mainImg;
        this.originalPrice = originalPrice;
        this.price = price;
        this.merchantId = merchantId;
        this.stock = stock;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSpuId() {
        return spuId;
    }

    public void setSpuId(String spuId) {
        this.spuId = spuId;
    }

    /**
     * 0-优选好货，4-限时折扣，5-秒杀，6-拼团，7-助力砍价
     * @return
     */
    public SpuShowModule getShowModule() {
        return showModule;
    }

    public void setShowModule(SpuShowModule showModule) {
        this.showModule = showModule;
    }

    public String getMainImg() {
        return mainImg;
    }

    public void setMainImg(String mainImg) {
        this.mainImg = mainImg;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }
}
